<?php
namespace app\admin\validate;

/**
* 验证器
*/
use think\Validate;
class AuthGroup extends Validate
{
	protected $rule =   [
        'title'         =>  'require|max:10|unique:auth_group',
    ];
    
    protected $message  =   [
        'title.require' => '名称必须',
        'title.max'     => '名称最多不能超过25个字符',
        'title.unique'  => '名称已经存在',
    ];
    protected $scene = [
        //'edit'  =>  ['title'],
    ];
    // edit 验证场景定义
    public function sceneedit()
    {
        //return $this->only(['title']);

    }  
}